package com.qf.j2102.mapper;

import com.qf.j2102.po.SysUser;
import org.apache.ibatis.annotations.Param;

public interface SysUserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser selectByTel(String tel);

    /**
     * 根据电话和email查询用户
     * @param tel
     * @param email
     * @return
     */
    SysUser selectUserByTelAndEmail(@Param("tel") String tel,@Param("email") String email);
    /**
     * 修改用户信息
     * @return
     */
    int updateUser(@Param("password") String password,@Param("id") int id);

    int deluser(@Param("id") int id);
}